﻿#include "ReportDialog.h"
#include "../../MirGraphics/MLibrary.h"
#include "../../MirSounds/SoundManager.h"
#include "../../Settings.h"

using namespace Client::MirControls;
using namespace Client::MirGraphics;
using namespace Client::MirNetwork;
using namespace Client::MirSounds;
namespace C = ClientPackets;

namespace Client::MirScenes::Dialogs
{

    ReportDialog::ReportDialog()
    {
        setIndex(1633);
        setLibrary(Libraries::Prguse);
        setMovable(true);
        setSort(true);
        setLocation(getCenter());

        CloseButton = new MirButton();
        CloseButton->setHoverIndex(361);
        CloseButton->setIndex(360);
        Point tempVar(336, 3);
        CloseButton->setLocation(&tempVar);
        CloseButton->setLibrary(Libraries::Prguse2);
        CloseButton->setParent(this);
        CloseButton->setPressedIndex(362);
        CloseButton->setSound(SoundList::ButtonA);
        CloseButton->Click += [&] (o, e)
        {
            Hide();
        };

        ReportType = new MirDropDownBox();
        ReportType->setParent(this);
        Point tempVar2(12, 35);
        ReportType->setLocation(&tempVar2);
        Size tempVar3(170, 14);
        ReportType->setSize(&tempVar3);
        ReportType->setForeColour(Color::White);
        ReportType->setVisible(true);
        ReportType->setEnabled(true);
        ReportType->getItems().push_back("Select Report Type.");
        ReportType->getItems().push_back("Submit Bug");
        ReportType->getItems().push_back("Report Player");

        MessageArea = new MirTextBox();
        MessageArea->setParent(this);
        Point tempVar4(12, 57);
        MessageArea->setLocation(&tempVar4);
        Size tempVar5(330, 150);
        MessageArea->setSize(&tempVar5);
        Font tempVar6(Settings::FontName, 8.0F);
        MessageArea->setFont(&tempVar6);

        MessageArea->MultiLine();

        SendButton = new MirButton();
        SendButton->setParent(this);
        SendButton->setLibrary(Libraries::Title);
        SendButton->setIndex(607);
        SendButton->setHoverIndex(608);
        SendButton->setPressedIndex(609);
        SendButton->setSound(SoundList::ButtonA);
        Point tempVar7(260, 219);
        SendButton->setLocation(&tempVar7);
        SendButton->Click += SendButton_Click;

    }

    void ReportDialog::SendButton_Click(std::any sender, EventArgs *e)
    {
        throw NotImplementedException();
    }
}
